"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProtoConfig = void 0;
class ProtoConfig {
    static getProtoReqName(protoType) {
        return ProtoConfig.requestProtoMap.get(protoType);
    }
    static getProtoRespName(protoType) {
        return ProtoConfig.responseMap.get(protoType);
    }
    static getProtoRequestType(protoName) {
        let protoType = 1;
        ProtoConfig.requestProtoMap.forEach((value, key) => {
            if (value == protoName) {
                protoType = key;
                return;
            }
        });
        return protoType;
    }
    static getProtoResponeseType(protoName) {
        let protoType = 1;
        ProtoConfig.responseMap.forEach((value, key) => {
            if (value == protoName) {
                protoType = key;
                return;
            }
        });
        return protoType;
    }
}
exports.ProtoConfig = ProtoConfig;
ProtoConfig.PB_MESSAGE = "PB_MESSAGE";
ProtoConfig.req_login = "req_login";
ProtoConfig.resp_login = "resp_login";
ProtoConfig.resp_error_code = "resp_error_code";
ProtoConfig.struct_user_sys_info = "struct_user_sys_info";
ProtoConfig.struct_user_info = "struct_user_info";
ProtoConfig.req_register = "req_register";
ProtoConfig.resp_register = "resp_register";
ProtoConfig.requestProtoMap = new Map().
    set(1, ProtoConfig.req_login).
    set(3, ProtoConfig.req_register);
ProtoConfig.responseMap = new Map().
    set(1, ProtoConfig.resp_login).
    set(2, ProtoConfig.resp_error_code).
    set(3, ProtoConfig.resp_register);
